<#--用户列表-->
<#--导航信息-->
<@override name="breadcrumb">
<a href="<@s.url '/account/list'/>" class="current"><@s.message 'account.list.title'/></a>
</@override>
<@override name="main">
<div class="span12">
    <div class="widget-box">
        <div class="widget-title">
            <div class="buttons">
                <a title="Icon Title" class="btn btn-mini" href="#"><i class="icon-plus"></i>添加用户</a>
                <a title="Icon Title" class="btn btn-mini" href="#"><i class="icon-upload"></i>导入用户</a>
            </div>
        </div>
        <div class="widget-content nopadding">
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th><input type="checkbox" id="title-table-checkbox" name="title-table-checkbox"/></th>
                    <th><@s.message 'account.list.header.login'/></th>
                    <th><@s.message 'account.list.header.email'/></th>
                    <th><@s.message 'account.list.header.username'/></th>
                    <th class="center"><@s.message 'table.hader.operation'/></th>
                </tr>
                </thead>
                <tbody>
					<#list accounts as account>
                    <tr class="gradeX">
                        <td><input id="${account.id}" type="checkbox"/></td>
                        <td>${account.login}</td>
                        <td>${account.mail}</td>
                        <td>${account.name}</td>
                        <td class="center">
                            <a href="<@s.url '/account/edit/'/>${account.id}" class="btn btn-primary btn-mini"><i
                                    class="icon-pencil icon-white"></i><@s.message 'operation.edit'/></a>
                            <a href="#" class="btn btn-danger btn-mini" data-operation="remove"
                               data-operation-url="<@s.url '/account/delete'/>?ids=${account.id}"
                               class="user-remove" rel="tooltip" title="<@s.message 'operation.delete'/>"><i
                                    class="icon-remove icon-white"></i><@s.message 'operation.delete'/></a>
                        </td>
                    </tr>
					</#list>
                </tbody>
            </table>
            <div class="viewall">
                <div class="pagination pull-left">
                    显示1-${total},总共${total}条
                </div>
                <div class="pagination alternate pull-right">

                    <ul>
                        <li class="disabled"><a href="#">首页</a></li>
                        <li class="disabled"><a href="#">上一页</a></li>
                        <li class="active">
                            <a href="#">1</a>
                        </li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">下一页</a></li>
                        <li><a href="#">末页</a></li>
                    </ul>
                </div>
            </div>

        </div>
    </div>
</div>
</@override>
<@extends name="/main.ftl" title="account.list.title" current="accounts"></@extends>